package com.dzbiao.nacos.controller;

import com.dzbiao.nacos.service.DeptService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: DZBiao
 * @Date : 2022/2/27
 * @Description : 描述：
 **/

@RestController
@Slf4j
public class DeptController {

    @Resource
    private DeptService deptService ;



    @GetMapping(value = "/dept/nacos/{id}")
    public String getPayment(@PathVariable("id") Integer id) {

        return deptService.getPayment(id);
    }

}
